package com.feihong.yw189.model.DingDan;

import android.graphics.drawable.Drawable;
import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2018/4/4 0004.
 */

public class YuLanPicModel implements Parcelable{


    /**
     * url : http://cdnimg1.djlm.wang/@1000h_1l?OSSAccessKeyId=bd9oxFqBcSzdIncQ&Expires=1522822789&Signature=0LysXVI7w9973vB4Hhm0GpKt7j8%3D
     * title : 用户手写签名
     */

    private String url;
    private String title;
    private Drawable drawable;

    public Drawable getDrawable() {
        return drawable;
    }

    public void setDrawable(Drawable drawable) {
        this.drawable = drawable;
    }

    public YuLanPicModel(String url, String title, Drawable drawable) {
        this.url = url;
        this.title = title;
        this.drawable = drawable;
    }

    public YuLanPicModel() {
    }

    protected YuLanPicModel(Parcel in) {
        url = in.readString();
        title = in.readString();
    }

    public static final Creator<YuLanPicModel> CREATOR = new Creator<YuLanPicModel>() {
        @Override
        public YuLanPicModel createFromParcel(Parcel in) {
            return new YuLanPicModel(in);
        }

        @Override
        public YuLanPicModel[] newArray(int size) {
            return new YuLanPicModel[size];
        }
    };

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {

        dest.writeString(url);
        dest.writeString(title);
    }

}
